<template>
    <div id="scoring-standard">
        <el-breadcrumb class="common-bread">
            <el-breadcrumb-item>体测评分标准</el-breadcrumb-item>
            <span class="phy-standard fr" @click="checkStandard()">体测标准</span>
        </el-breadcrumb>
        <div class="contentBox">
            <el-table :data="levelArr" border class="standmsg">
                <el-table-column prop="level" label="等级" width="300"></el-table-column>
                <el-table-column prop="score" label="总分" width="320"></el-table-column>
            </el-table>
            <el-table :data="standArr" border size="mini" class="stand-table">
                <el-table-column prop="testItem" label="项目" align="center" width="300"></el-table-column>
                <el-table-column prop="primary12" label="小学一二年级" align="center" width="120"></el-table-column>
                <el-table-column prop="primary34" label="小学三四年级" align="center" width="120"></el-table-column>
                <el-table-column prop="primary56" label="小学五六年级" align="center" width="120"></el-table-column>
                <el-table-column prop="juniorMiddle" label="初中" align="center" width="100"></el-table-column>
                <el-table-column prop="hignSchool" label="高中" align="center" width="100"></el-table-column>
                <el-table-column label="评分标准" align="center" width="120">
                    <template slot-scope="scope">
                        <el-button size="small" type="text" @click="locationToDetail(scope.row.index)">查看评分标准</el-button>
                    </template>
                </el-table-column>
            </el-table>

        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                levelArr: [
                    { level: '优秀', score: '总分90分及以上为优秀' },
                    { level: '良好', score: '总分80分—89分为良好' },
                    { level: '及格', score: '总分60分—79分' },
                    { level: '不及格', score: '总分60分以下' }
                ],
                standArr: [
                    { index: 0, testItem: 'BMI', primary12: '15%', primary34: '15%', primary56: '15%', juniorMiddle: '15%', hignSchool: '15%' },
                    { index: 1, testItem: '肺活量', primary12: '15%', primary34: '15%', primary56: '15%', juniorMiddle: '15%', hignSchool: '15%' },
                    { index: 2, testItem: '50米跑', primary12: '20%', primary34: '20%', primary56: '20%', juniorMiddle: '20%', hignSchool: '20%' },
                    { index: 3, testItem: '坐位体前屈', primary12: '30%', primary34: '20%', primary56: '10%', juniorMiddle: '10%', hignSchool: '10%' },
                    { index: 4, testItem: '1分钟跳绳', primary12: '20%', primary34: '20%', primary56: '10%', juniorMiddle: '', hignSchool: '' },
                    { index: 6, testItem: '1分钟仰卧起坐', primary12: '', primary34: '10%', primary56: '20%', juniorMiddle: '', hignSchool: '' },
                    { index: 8, testItem: '50*8往返跑', primary12: '', primary34: '', primary56: '10%', juniorMiddle: '', hignSchool: '' },
                    { index: 5, testItem: '立定跳远', primary12: '', primary34: '', primary56: '', juniorMiddle: '10%', hignSchool: '10%' },
                    { index: 6, testItem: '男生引体向上、女生1分钟仰卧起坐', primary12: '', primary34: '', primary56: '', juniorMiddle: '10%', hignSchool: '10%' },
                    { index: 8, testItem: '男生1000米跑、女生800米跑', primary12: '', primary34: '', primary56: '', juniorMiddle: '20%', hignSchool: '20%' },
                ]
            }
        },
        methods: {
            // 体测标准
            checkStandard() {
                location.href = '/#/physicalStandard'
            },
            // 查看评分标准
            locationToDetail(num) {
                location.href = '/#/physicalStandard?locationNum=' + num;
            }
        }
    }
</script>
<style scoped>
    #scoring-standard .stand-table {
        width: 981px;
        text-align: center;
    }

    .standmsg {
        width: 621px;
        color: #666;
        margin-bottom: 30px;
    }
</style>